@itemWidth: 400px;
@itemHeight: 300px;

.container {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    background-color: #eaeaea;

    .header {
        width: 100vw;
        background-color: rgb(187, 203, 233);
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        padding: 76px 32px 35px 32px;
        box-shadow: 0 2px 0px #72a4ff;

        .title {
            font-size: 7rem;
            font-weight:bolder;
            color: #e5e5e5;
            font-family: 'Bungee';
            text-shadow: 1.3px -1.3px #fff, -1.2px 1.2px #555, -8px 8px 6px #808080E0;
            letter-spacing: 6px;
        }

        .desc {
            font-size: 20px;
            color: rgb(80, 80, 80);
            margin-top: 12px;
            line-height: 36px;
            text-align: center;
            background: linear-gradient(to right, #4e9efa, #e64b96) no-repeat right bottom;
            background-size: 0px 3px;
            transition: background-size 0.8s;
            cursor: pointer;
        }

        .desc:hover {
            background-position: left bottom;
            background-size: 100% 2px;
        }

        span {
            font-size: 2rem;
            background-color: #f11258;
            border-bottom-right-radius: 60%;
            padding: 10px;
            position: absolute;
            top: 0;
            left: 0;
            cursor: pointer;
            transition: all 0.3s;
            color: white;

            &:hover {
                font-size: 2.4rem;
                background-color: #af0038;
            }
        }
    }

    .content {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 10px;
        padding-bottom: 24px;
        box-sizing: border-box;

        .card {
            width: @itemWidth;
            height: @itemHeight;
            background: transparent;
            border-radius: 10px;
            margin-top: 10px;
            margin-right: 10px;
            position: relative;
            z-index: 1;
            overflow: hidden;
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;

            &:hover::before {
                content: '';
                position: absolute;
                width: @itemWidth * 1.1;
                height: @itemHeight * 1.1;
                background: linear-gradient(to right, #86bfff, #e64b96) no-repeat right bottom;
                left: 30%;
                top: 30%;
                z-index: -2;
                transform-origin: 20% 20%;
                animation: rotation 2s ease-out infinite;
            }

            &::before {
                content: '';
            }
    
            @keyframes rotation {
                to {
                    transform: rotate(360deg);
                }
            }
    
            &::after {
                content: '';
                position: absolute;
                inset: 4px;
                background: white;
                border-radius: 7px;
                z-index: -1;
            }

            .titleLayout {
                width: 100%;
                height: 80px;
                display: flex;
                flex-direction: row;
                align-items: center;

                .icon {
                    width: 76px;
                    height: 76px;
                    border-radius: 38px;
                    z-index: 0;
                }

                .name {
                    font-size: 20px;
                    font-weight: bold;
                    color: #333;
                    margin-left: 24px;
                }
            }

            .row {
                width: 100%;
                display: flex;
                flex-direction: row;
                align-items: flex-start;
                margin-top: 20px;

                .label {
                    min-width: 76px;
                    font-size: 14px;
                    color: #aaa;
                    text-align: justify;
                    text-justify: inter-word; /* 拉伸字间距 */
                }

                .value {
                    flex: 1;
                    font-size: 15px;
                    color: #333;
                    word-break: break-all;
                }

                a {
                    font-size: 15px;
                }

                .route {
                    font-size: 15px;
                    color: #1876ff;
                    cursor: pointer;
                    text-decoration: underline;
                    line-height: 15px;
                    padding: 8px 12px;
                    border-radius: 6px;
                    background-color: #1876ff15;
                    margin-right: 10px;

                    &:hover {
                        background-color: #1876ff30;
                    }
                }
            }
        }
    }
}